# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-soapy_power
pkgver=1.6.1
pkgrel=3
pkgdesc="Obtain power spectrum from SoapySDR devices"
url="https://github.com/xmikos/soapy_power"
arch="noarch"
license="MIT"
depends="python3 py3-numpy py3-simplesoapy py3-simplespectral py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmikos/soapy_power/archive/v$pkgver.tar.gz"
builddir="$srcdir/soapy_power-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="19aa0e80a7b67cb29d842343c09b8ca2e3068583c8117a8151c5b47f1a34369f0ec833f038595323712986c9348b14a43dc1fdc6516adb40de6b42a281d782e1  py3-soapy_power-1.6.1.tar.gz"
